import Vue from 'vue'
import App from './App'
import util from './static/util.js'
import tabbar from 'components/tabbar/tabbar.vue'
// #ifdef H5
 // import VConsole from 'vconsole';
    // new VConsole();
// #endif
Vue.config.productionTip = false
 /* import wechat from './static/js/wx.js'
 Vue.prototype.$wechat =wechat; */
//var jweixin = require('components/jweixin-module')
//+console.log(wechat)
Vue.component("tabbar",tabbar)
Vue.prototype.$imgUrl="https://nengyuan.chuangxiangdianli.com"
Vue.prototype.$upload=function(obj){
        uni.uploadFile({
            url:'https://nengyuan.chuangxiangdianli.com/api/common/upload_img', //仅为示例，非真实的接口地址
            filePath: obj.path,
            name: 'file',
            formData: obj.formData,
            success: (res) => { 
				console.log(res)
                obj.success(res.data)
            },
			fail:(res)=>{
				console.log(res)
				obj.fail(res.data)
			},
			complete: (res) => {
				console.log(obj.path)
				obj.complete(res.data)
			}
        });
 	}

Vue.prototype.ajax= util.request

	
	

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
